/**
 * 
 */
package com.wissen.giskard.server.domainobjects;

import java.sql.Timestamp;
import java.util.Date;

import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.OneToOne;
import javax.persistence.Table;
import javax.persistence.Version;

import org.hibernate.annotations.Cascade;

/**
 * @author Swapnil Sonawane
 *
 * @created date :07-Aug-2010
 */
@Entity
@Table(name="salaryslip")
public class SalarySlip {
	
	@Id
	@GeneratedValue
	@Column(name="salary_id")
	private long salary_Id;
	
/*	@OneToOne(cascade=CascadeType.ALL) */
	
	
	@Column(name="name")
	private String name;
	
	@Column(name="month")
	private String month;
	
	@Column(name="basicSalary")
	private double basicSalary;
	
	@Column(name="bonus1")
	private double bonus1;
	
	@Column(name="bonus2")
	private double bonus2;
	
	@Column(name="deduction1")
	private double deduction1;
	
	@Column(name="deduction2")
	private double deduction2;
	
	
	@Column(name="creation_date")
	private Date creationDate;
	
	@Version
	@Column(name="create_dttm")
	private Timestamp create_dttm;
	
	@Version
	@Column(name="update_dttm")
	private Timestamp updat_dttm;
	
	@Column(name="enable")
	private boolean enable;
	
	@Column(name="paid")
	private boolean paid;
	
	
	
	public boolean getPaid() {
		return paid;
	}

	public void setPaid(boolean paid) {
		this.paid = paid;
	}

	public boolean isenable() {
		return enable;
	}

	public void setenable(boolean enable) {
		this.enable = enable;
	}

	public long getSalary_Id() {
		return salary_Id;
	}

	public void setSalary_Id(long salaryId) {
		salary_Id = salaryId;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getMonth() {
		return month;
	}

	public void setMonth(String month) {
		this.month = month;
	}

	public double getBasicSalary() {
		return basicSalary;
	}

	public void setBasicSalary(double basicSalary) {
		this.basicSalary = basicSalary;
	}

	public double getBonus1() {
		return bonus1;
	}

	public void setBonus1(double bonus1) {
		this.bonus1 = bonus1;
	}

	public double getBonus2() {
		return bonus2;
	}

	public void setBonus2(double bonus2) {
		this.bonus2 = bonus2;
	}

	public double getDeduction1() {
		return deduction1;
	}

	public void setDeduction1(double deduction1) {
		this.deduction1 = deduction1;
	}

	public double getDeduction2() {
		return deduction2;
	}

	public void setDeduction2(double deduction2) {
		this.deduction2 = deduction2;
	}

	public Date getCreationDate() {
		return creationDate;
	}

	public void setCreationDate(Date creationDate) {
		this.creationDate = creationDate;
	}

	public Timestamp getCreate_dttm() {
		return create_dttm;
	}

	public void setCreate_dttm(Timestamp createDttm) {
		create_dttm = createDttm;
	}

	public Timestamp getUpdat_dttm() {
		return updat_dttm;
	}

	public void setUpdat_dttm(Timestamp updatDttm) {
		updat_dttm = updatDttm;
	}

	

	
	
}
